--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit ac2c9c3a9b0964f4f212663de4fc0362c02e1d13
Parents : 05f144a
Author : Mark Qvist <mark@unsigned.io>
Date : 2024-09-30T19:27:40+02:00
Improved opportunistic delivery performance
Changes
Diff
diff --git a/LXMF/Handlers.py b/LXMF/Handlers.py
index eb10a76..5ce5571 100644
--- a/LXMF/Handlers.py
+++ b/LXMF/Handlers.py
@@ -15,7 +15,7 @@ class LXMFDeliveryAnnounceHandler:
def received_announce(self, destination_hash, announced_identity, app_data):
for lxmessage in self.lxmrouter.pending_outbound:
if destination_hash == lxmessage.destination_hash:
- if lxmessage.method == LXMessage.DIRECT:
+ if lxmessage.method == LXMessage.DIRECT or lxmessage.method == LXMessage.OPPORTUNISTIC:
lxmessage.next_delivery_attempt = time.time()
while self.lxmrouter.processing_outbound:
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────